package hottargui.gui;

import hottargui.config.*;
import hottargui.framework.Game;
import minidraw.standard.*;
import minidraw.framework.*;
import hottargui.standard.*;
import hottargui.view.*;

/* Application class */
public class HotTargui {

	public static void main(String[] args) {
		GuiFactory factory = null;
		if (args[0].equalsIgnoreCase("alpha")) {
			factory = new GuiFactory(new AlphaTarguiFactory());
		} 
		else if (args[0].equalsIgnoreCase("beta")) {
			factory = new GuiFactory(new BetaTarguiFactory());
		}
		else if (args[0].equalsIgnoreCase("gamma")) {
			factory = new GuiFactory(new GammaTarguiFactory());
		}
		else if (args[0].equalsIgnoreCase("delta")) {
			factory = new GuiFactory(new DeltaTarguiFactory());
		}
		else if (args[0].equalsIgnoreCase("semi")) {
			factory = new GuiFactory(new SemiTarguiFactory());
		}
		DrawingEditor window = 
			new MiniDrawApplication( "Hottargui "+args[0]+" game",  factory);
		window.open();
		Game game = factory.getGame();
		((StandardGame) game).init();   
	}
}


